package nextwo.android.intelimed;

import nextwo.android.intelimed.R;
import android.app.Activity;
import android.content.*;
import android.os.Bundle;
import android.widget.*;
import android.view.*;

public class Page1 extends Activity {
	
	Button bttela2;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        bttela2 = (Button)
        findViewById (R.id.bttela2);
       
        bttela2.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				
				Intent trocatela = new
						Intent(Page1.this,Page2.class);
				trocatela.putExtra("text",((EditText)findViewById(R.id.editText)).getText().toString());
				Page1.this.startActivity(trocatela);
				Page1.this.finish();
				
			}
		});
    }
}